package com.ququ.syb.common.constant;

public class RedisKeyConstant {

    public static final String LAST_ACCOUNT_ID ="last:account:id";
    public static final String LAST_APP_CODE = "last:application:code";
    public static final String BLACKLIST_MOBILE = "blacklist:mobile";
    public static final String BLACKLIST_IDCARD = "blacklist:idcard";

    //商户开通的通道缓存
    public static final String ACCOUNT_PAY_CHANNEL = "paychannel:account:";     //开通的通道缓存Hash

    public static final String APPLICATION_PAY_CHANNEL = "paychannel:appcode:"; //应用通道配置
    public static final String APPLICATION_CONTROLLER = "controller:appcode:";  //应用接口授权配置
    //多通道共享余额表
    public static final String SHARE_BALANCE = "share:balance";         //共享余额表

    //支付订单有效期(Redis中)
    public static final String PAYORDER_TIMEOUT = "payorder:timeout:";  //支付订单有效期
    public static final String PAYORDER_TIMEOUT_SET = "payorder:timeouts";  //支付订单集合

    //支付订单自动查单次数
    public static final String PAYORDER_QUERY_TIMES = "payorder:query:times:";


    //特殊手续费设置(HASH)
    public static final String APPLICATION_PAYCHANNEL_COMMISSION ="commission:channel:pay:app:";
    public static final String ACCOUNT_PAYCHANNEL_COMMISSION ="commission:channel:pay:account:";
    public static final String PARTNER_PAYCHANNEL_COMMISSION = "commission:channel:pay:partner:";
    public static final String APPLICATION_PAYCHANNEL_WITHDRAW_COMMISSION ="commission:channel:withdraw:app:";
    public static final String ACCOUNT_PAYCHANNEL_WITHDRAW_COMMISSION ="commission:channel:withdraw:account:";
    public static final String PARTNER_PAYCHANNEL_WITHDRAW_COMMISSION = "commission:channel:withdraw:partner:";

    //担保账户
    public static final String ASSURE_ACCOUNT = "assure:accountid";

    //回调次数
    public static final String PAY_CALLBACK_COUNT="pay:callback:count:";
    public static final String WITHDRAWAL_NOTIFY_COUNT="withdraw:notify:count:";

    //统一换卡的通道号集合
    public static final String BANKCARD_UPDATE_CHANNEL_SET = "bankcard:update:paychannels";

}
